package io.jee.medusa.orm.condition;

public class ConditionValue {

	/**
	 * 实体对象属性名
	 */
	private String key;

	/**
	 * 实体对象属性名对应值
	 */
	private Object value;

	/**
	 * 实体对象属性名对应值的数据类型
	 * 
	 * 0-数值; 1-字符; 2-逻辑; 3-日期; 4-数组;
	 */
	private Integer valueType;

	/**
	 * 操作类型
	 * 
	 * 0-等于; 1-不等于; 2-大于; 3-小于; 4-大于等于; 5-小于等于; 6-模糊; 7-包含;
	 */
	private Integer opType;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public Integer getValueType() {
		return valueType;
	}

	public void setValueType(Integer valueType) {
		this.valueType = valueType;
	}

	public Integer getOpType() {
		return opType;
	}

	public void setOpType(Integer opType) {
		this.opType = opType;
	}

	public ConditionValue() {
	}

	public ConditionValue(String key) {
		this.key = key;
	}
}
